﻿/* $RCSFile: CrmEntityManagerUtil.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/AddonNice/PageModules/CrmEntityManager/CrmEntityManagerUtil.cs $
 * $log$
 * Revision 19 2010/08/09 09:43:48  christian.surieux
 *   Added Log to cs sources files
 * Revision 6 2010/08/06 19:56:24  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Globalization;

using AddonNice.UI;
using AddonNice.UI.WebControls;
using AddonNice.UI.DataTypes;
using AddonNice.Configuration;
using AddonNice.Settings;
using AddonNice.Diagnostics;
using AddonNice.Helpers;
using AddonNice.Configuration.Settings;
using AddonNice.CRMWrapper;

using Telerik.Web.UI;

using Trace2    =   System.Diagnostics.Trace;

namespace AddonNice.PageModules.CrmEntityManager
{
 	#region Local TraceSwitch 
	public class CrmEntityManTrace : ADNTraceSwitch
	{
		static public ADNTraceSwitch	Sw	=	new ADNTraceSwitch("CrmEntityManTrace","Special Trace Switch for Ratings");
	}
	#endregion Local TraceSwitch 

    public class RStr
    {
        public const string NumberStars         =   "CRMSERVERMAN_NUMBERSTAR";
    }

    /// <summary>
    /// Initializer for CrmEntityManager 
    /// </summary>
    public class CrmEntityManagerBaseSI : PortalCRMModuleControlSI
    {
        public CrmEntityManagerBaseSI() : base()
        {}

        public CrmEntityManagerBaseSI(ModuleSettingsDictionary bSettings,ISettingsOwner pm) : base()
        {
            if ( CrmEntityManTrace.Sw.TraceVerbose )
                Trace2.WriteLine("[V]CrmEntityManagerBaseSI Ctor BEG.",CrmEntityManTrace.Sw.Info);
            InitSettings(bSettings,pm);
            if ( CrmEntityManTrace.Sw.TraceVerbose )
                Trace2.WriteLine( "[V]CrmEntityManagerBaseSI Ctor END.",CrmEntityManTrace.Sw.Info);
        }

        public override void InitSettings(ModuleSettingsDictionary bSettings,ISettingsOwner pm)
        {             
            if ( CrmEntityManTrace.Sw.TraceVerbose )
                Trace2.WriteLine( "[V]CrmEntityManagerBaseSI InitSettings BEG.",CrmEntityManTrace.Sw.Info);
            base.InitSettings(bSettings,pm);

            //const string extgrp                     =   "CRMSERVER_MANAGER";


            if ( CrmEntityManTrace.Sw.TraceVerbose )
                Trace2.WriteLine("[V]CrmEntityManagerInitializer Ctor END.",CrmEntityManTrace.Sw.Info);
        }

    }

}
